
%\documentclass[letterpaper,12pt]{article}
%\usepackage[x11names,rgb]{xcolor}
%\usepackage{tikz}
%\usetikzlibrary{snakes}
%\usetikzlibrary{arrows}
%\usetikzlibrary{shapes}
%\usetikzlibrary{backgrounds}
%\usepackage{amsmath}
%\oddsidemargin 0in
%\evensidemargin 0in
%\topmargin 0in
%\headheight 0in
%\headsep 0in
%\textheight 9in
%\textwidth 6.5in
%\begin{document}
%\pagestyle{empty}
%\vspace*{\fill}
%\begin{center}
\documentclass{article}
 
\usepackage[pdftex,active,tightpage]{preview}
\usepackage{tikz}
\usetikzlibrary{snakes}
\usetikzlibrary{arrows}
\makeatletter
 
\begin{document}
\begin{preview}
	%%
	\begin{tikzpicture}[scale=2.0]
	
	\draw[thin, xstep=1, ystep=1] (0,0) grid (2,2); 
	 
	\draw[thin, xstep=1, ystep=1] (3,0) grid (5,2); 
	
	\draw[->] (0,0) -- (2.4,0);
	\draw[->] (3,0) -- (5.4,0);
	
	\draw[->] (0,0) -- (0,2.4);
	\draw[->] (3,0) -- (3,2.4);
	
	\draw[->,dashed] (0.5,0.5) -- (0.5,1.5) -- (1.5,0.5) -- (1.5,1.5);
	
	\draw[->,dashed] (3.5,0.5) -- (4.5,0.5) -- (3.5,1.5) -- (4.5,1.5);
	
	\draw (2.4,0) node[below] {\scriptsize{X}};
	\draw (0,2.4) node[left] {\scriptsize{Y}};
	
	\draw (5.4,0) node[below] {\scriptsize{X}};
	\draw (3,2.4) node[left] {\scriptsize{Y}};
	
	\draw (1,-0.25) node[above] {\scriptsize{Type-1}};
	\draw (4,-0.25) node[above] {\scriptsize{Type-2}};
	  
	\end{tikzpicture}%%
\end{preview}
\end{document}

%\end{center}
%\vspace*{\fill}
%\end{document}

    	